package com.wis.controller;

import com.wis.service.NoticeService;
import com.wis.util.CommonResult;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/user/notice")
public class NoticeController {
    @Resource
    private NoticeService noticeService;

    @GetMapping(value = "/showNotice",produces = MediaType.APPLICATION_JSON_VALUE)
    public CommonResult showNotice(@RequestParam(value = "page", defaultValue = "1") int page, @RequestParam(value = "limit", defaultValue = "7") int limit) {
        return noticeService.showNotice(page, limit);
    }
}

